package com.deprecated.patch;

import com.panopset.centralen.UniqueKey;
import com.panopset.sf.Windoc;

/**
 * Field persistent value.
 *
 * @author Karl Dinwiddie
 */
public final class FieldValue {
	
	private final Windoc sd;
	private final String key;
	
	public FieldValue(final Windoc swingDoc) {
		sd = swingDoc;
        key = UniqueKey.generateStackHashKey();
	}

    /**
     * @return Value.
     */
    public String getValue() {
    	return sd.getFileProps().get(key);
    }

    /**
     * @param value Value.
     */
    public void setValue(final String value) {
    	sd.getFileProps().put(key, value);
    }
}
